SuppliedTextWidget
class SuppliedTextWidget(messageSupplier: Supplier<Text>, textRenderer: TextRenderer, width: Int, height: Int) : AbstractTextWidget, TooltipChild
An AbstractTextWidget that renders text from a supplier of text, not a static text instance
Author
fzzyhmstrs
Since
0.3.1, removed align:direction: methods and now implements TooltipChild in 0.6.0
Parameters
messageSupplier
Supplier<Text> - supplies text to this widget
textRenderer
TextRenderer - textRenderer instance
width
Int - width of the widget in pixels
height
Int - height of the widget in pixels
Functions
Link copied to clipboard
Aligns the widget text to the alignment fraction provided
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Provides a list of text for appending into a Narration Hint. By default this will use the same lines passed from provideTooltipLines, with predefined values for the inputs
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
supplies a text for tooltips if the text overflows the width of the widget.